/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rapidp2p.backend;

import java.net.*;
/**
 *
 * @author LF
 */
public class RapidMember {
    private String username;
    private InetAddress ipAddress;
    
    public String getUsername(){
        return this.username;
    }
    public void setUsername(String username){
        this.username = username;
    }
    public InetAddress getIP(){
        return this.ipAddress;
    }
    public void setIP(InetAddress ipAddress){
        this.ipAddress = ipAddress;
    }
    public RapidMember(String username, InetAddress ipAddress){
        this.username = username;
        this.ipAddress = ipAddress;
    }
    
//    public static void main (String [] args) throws UnknownHostException{
//        InetAddress Address = InetAddress.getLocalHost(); 
//System.out.println(Address); 
//Address = InetAddress.getByName("starwave.com"); 
//System.out.println(Address); 
//InetAddress SW[] = InetAddress.getAllByName("www.nba.com"); 
//for (int i=0; i<SW.length; i++) 
//System.out.println(SW[i]);
//
//    RapidMember rm1 = new RapidMember("Member 1", InetAddress.getLocalHost());
//    RapidMember rm2 = new RapidMember("Member 2", InetAddress.getLocalHost());
//    RapidMember rm3 = new RapidMember("Member 3", InetAddress.getLocalHost());
//    RapidMember [] rmArray = new RapidMember[3];
//    rmArray[0] = (rm1);
//    rmArray[1] = (rm2);
//    rmArray[2] = (rm3);
//    for(int j=0; j<3; j++){
//        System.out.println(rmArray[j].getUsername());
//        System.out.println(rmArray[j].getIP());
//    }
    }

